// 图标配置项
var options = {
  // 曲线图
  option1: {
    title: {
      text: '曲线中途数据展示',
      left: 'center'
    },
    xAxis: {
      type: 'category',
      boundaryGap: false,
      data: []
    },
    yAxis: {
      type: 'value',
      splitLine: {
        lineStyle: {
          type: 'dashed'
        },
        show: true
      }
    },
    series: [
      {
        data: [],
        type: 'line',
        smooth: true,
        areaStyle: {
          color: '#f4f7ff'
        }
      }
    ]
  },

  // 饼状图
  option2: {
    title: {
      text: '饼状图数据展示',
      left: 'center'
    },
    tooltip: {
      trigger: 'item'
    },
    series: [
      {
        name: 'Access From',
        type: 'pie',
        radius: '50%',
        data: [],
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0.5)'
          }
        }
      }
    ]
  },

  // 柱状图
  option3: {
    title: {
      text: '柱状图数据展示',
      left: 'center'
    },
    xAxis: {
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },

    yAxis: {
      name: '商品数',
      type: 'value',
      nameTextStyle: {
        align: 'right',
        fontWeight: 'bold'
      },
      splitLine: {
        lineStyle: {
          type: 'dashed'
        },
        show: true
      }
    },
    series: [
      {
        data: [120, 200, 150, 80, 70, 110, 130],
        type: 'bar',
        areaStyle: {
          color: '#4284f2'
        }
      }
    ]
  }
};
